#include "measmenu.h"
#include <QtGui>
#include "wndmanager.h"

//------------------------------------------------------------------------------
// PUBLIC INTERFACES
//------------------------------------------------------------------------------

MeasMenu::MeasMenu(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);

	connect(ui.normalButton, SIGNAL(clicked()), this, SLOT(menuSelected()));
	connect(ui.masterButton, SIGNAL(clicked()), this, SLOT(menuSelected()));
	connect(ui.settingsButton, SIGNAL(clicked()), this, SLOT(menuSelected()));
	connect(ui.returnButton, SIGNAL(clicked()), this, SLOT(menuSelected()));
}

MeasMenu::~MeasMenu()
{
	delete ui.normalButton;
	delete ui.masterButton;
	delete ui.settingsButton;
	delete ui.returnButton;
	delete ui.gridLayout;
}


//------------------------------------------------------------------------------
// SLOTS
//------------------------------------------------------------------------------

void MeasMenu::menuSelected()
{
	QPushButton *button = qobject_cast<QPushButton*>(sender());
	if(button == ui.normalButton){
	}else if(button == ui.masterButton){
	}else if(button == ui.settingsButton){
	}else if(button == ui.returnButton){
		WndManager::gotoWnd(WndManager::kWndMainMenu);
	}
}
